<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            height: 80px;
            background-color: #1479d7;
        }

        .box a {
            text-decoration: none;
            text-align: center;
            line-height: 80px;
            display: inline-block;
            width: 100px;
            height: 80px;
            color: #fff;
            font-size: 25px;

        }

        .box a:hover {
            background-color: #808080;
        }
    </style>
</head>

<body>
    <div class="box">
        <a href="#">新闻</a>
        <a href="#">视频</a>
        <a href="#">图片</a>
        <a href="#">军事</a>
        <a href="#">体育</a>
        <a href="#">NBA</a>
    </div>

</body>

</html>